<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* 修改密码 */
$this->title = "修改密码";
?>

<style type="text/css">
	.mui-bar{background-color:rgb(41, 167, 226);}
	.mui-title{color: #FFF;}
	.mui-table-view {margin-top: 20px;}
	.update{font-style: normal;font-size: 15px;margin-right: -25px;}
	.mui-btn-block{padding: 5px 0px;}
	.mui-table-view-cell:after{left:0}
	.mui-input-group .mui-input-row:after{left: 0}
	.help-block.help-block-error{color: red;text-align: center;}
	.has-error input{border: 1px solid red !important;}
	.mui-input-group:before{background-color:#efeff4;}
    .mui-input-group:after{background-color:#efeff4;}
    .mui-btn-primary{background-color:rgb(41, 167, 226);border:1px solid rgb(41, 167, 226); }
</style>
<script type="text/javascript">
	var getId=localStorage.getItem("phone");
	var Id = "<?=$model->phone?>";
	if(getId != Id){
		window.location.href='/member/member/login'; 
	}
</script>

<div class="mui-content mui-scroll-wrapper">
	<div class="mui-row">
				<div class="mui-col-xs-12" style="text-align: center;margin-top:40px;">
					<img src="/img/login.png" style="width:80%;" >
				</div>	
	</div>
			
	<div class="mui-row" style="margin-top: 1rem;">
			<div class="mui-col-xs-12" style="width: 90%;margin-left: 5%" >
					<?php $form = ActiveForm::begin([]); ?>
						<div class="mui-input-group mui-input-row" style="background-color: #efeff4;"> 
							<div class="mui-row">
								<div class="mui-col-xs-3" style="line-height: 40px">
									新密码
								</div>
								<div class="mui-col-xs-9">	
							<?= $form->field($model, 'password')->passwordInput(['maxlength' => true, 'placeholder'=>'输入密码','style'=>'width:100%;background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-password'])->label(false); ?>
								</div>
							</div>
						</div>

						<div class="mui-input-group mui-input-row" style="margin-top:0.5rem;background-color: #efeff4;">
							<div class="mui-row">
								<div class="mui-col-xs-3" style="line-height: 40px">
									确认密码
								</div>
								<div class="mui-col-xs-9">	  
							<?= $form->field($model, 'confirmPassword')->passwordInput(['maxlength' => true, 'placeholder'=>'确认密码','style'=>'width:100%;background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-password'])->label(false); ?>
								</div>
							</div>
						</div>
						<div class="mui-col-xs-12" style="margin-top: 2rem">
							 <?= Html::submitButton('提 交' , ['class'=>'mui-btn mui-btn-block mui-btn-primary']) ?>
						</div>
					<?php ActiveForm::end(); ?>
			</div>	
	</div>	
</div>


	




